package com.yunwaikeji.gy_tool_library.utils.picture.download;

import android.graphics.drawable.Drawable;
import android.net.Uri;

import com.yunwaikeji.gy_tool_library.model.GYBaseModel;

import java.io.File;

public class GYPictureModel extends GYBaseModel {
    private String url;
    private File file;
    private Drawable drawable;
    private Integer resId;
    private Uri uri;
    private String cacheTab = "zoom";//缓存图片便签
    private String cachePath;//缓存路径

    public String getUrl() {
        return url;
    }

    public GYPictureModel setUrl(String url) {
        this.url = url;
        return this;
    }

    public File getFile() {
        return file;
    }

    public GYPictureModel setFile(File file) {
        this.file = file;
        return this;
    }

    public Drawable getDrawable() {
        return drawable;
    }

    public GYPictureModel setDrawable(Drawable drawable) {
        this.drawable = drawable;
        return this;
    }

    public Integer getResId() {
        return resId;
    }

    public GYPictureModel setResId(Integer resId) {
        this.resId = resId;
        return this;
    }

    public Uri getUri() {
        return uri;
    }

    public GYPictureModel setUri(Uri uri) {
        this.uri = uri;
        return this;
    }

    public String getCacheTab() {
        return cacheTab;
    }

    public GYPictureModel setCacheTab(String cacheTab) {
        this.cacheTab = cacheTab;
        return this;
    }

    public String getCachePath() {
        return cachePath;
    }

    public GYPictureModel setCachePath(String cachePath) {
        this.cachePath = cachePath;
        return this;
    }
}
